---@class RedDotsMythicDungeonsHandler
RedDotsMythicDungeonsHandler = {};
local this = RedDotsMythicDungeonsHandler;
function RedDotsMythicDungeonsHandler.init()
    CloseEvent(Config.EventType.Fresg_RushItem, this.update);
    ListenEvent(Config.EventType.Fresg_RushItem, this.update);

    return this;
end

--
function RedDotsMythicDungeonsHandler.getFlag(...)
    if logicMgr.FuncOpenManager.isOpen(Config.FuncOpenType.Mythic, false) then
        if logicMgr.MythicDungeonsManager.getRedPoint() then
            return Config.RedDotsFlagState.Needful
        end
    end
    return Config.RedDotsFlagState.None;
end

function RedDotsMythicDungeonsHandler.update()
    RedDotsManager.addBroadcast(Config.RedDotsType.MythicDungeons);
end

return RedDotsMythicDungeonsHandler;